<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>
    // 其他转布尔

    // Boolean();

    console.log(Boolean( "hello" ))
    console.log(Boolean( "  " ))
    console.log(Boolean( "false" ))
    console.log(Boolean( "" ))
    console.log(Boolean( 123 ))
    console.log(Boolean( 0 ))
    console.log(Boolean( -123 ))
    console.log(Boolean( {} ))
    console.log(Boolean( {name:"Admin"} ))
    console.log(Boolean( function(){} ))
    console.log(Boolean( function(){console.log(1)} ))
    console.log(Boolean( undefined ))
    console.log(Boolean( null ))
    console.log(Boolean( NaN ))

</script>
</html>